﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{
    /// <summary>
    /// 前端界面菜单表
    /// </summary>
    public class WebMenu:BaseEntity
    {
        [Required(ErrorMessage ="{0}不能为空")]
        [StringLength(50),Column(TypeName ="varchar(50)")]
        [Display(Name ="前端界面菜单名称")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(150), Column(TypeName = "varchar(150)")]
        [Display(Name = "前端界面菜单链接")]
        public string Link { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(150), Column(TypeName = "varchar(150)")]
        [Display(Name = "前端界面菜单图标")]
        public string Icon { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "前端界面菜单父级Id")]
        public int ParentId { get; set; }
    }
}
